const OSS = require('ali-oss');
 
export default function Client(data) {
    //后端提供数据
    return new OSS({
       // region: 'oss-cn-shanghai',  //oss-cn-beijing-internal.aliyuncs.com
        accessKeyId: data.accessKeyId,
        accessKeySecret: data.accessKeySecret,
       // stsToken: data.stsToken,
        bucket: data.bucket,
        endpoint:'oss-cn-shanghai'
    })
}